IsThemeInColor
NEW WITH THE APPEARANCE MANAGER
Checks to see whether the current theme would draw in color in the given environment.
pascal Boolean IsThemeInColor ( SInt16 inDepth, Boolean inIsColorDevice);
inDepth
- The bit depth (in pixels) of the current graphics port.
inIsColorDevice
- A Boolean value. Set to
true
to indicate that you are drawing on a color device. Set tofalse
for a monochrome device.- function result
- Returns
true
if, given the depth and color device information, the theme would draw in color; returnsfalse
, if not.DISCUSSION
TheIsThemeInColor
function is useful when you are drawing elements to match the current theme and need to determine whether or not the theme would be drawn in color or black and white. If the function returnstrue
, you can draw in color; if it returnsfalse
, you should draw in black and white.SPECIAL CONSIDERATIONS
Make sure Appearance Manager 1.0.1 is present before calling theIsThemeInColor
function. See "Appearance Manager Gestalt Selector Constants" for details on how to determine if the Appearance Manager is present and what its version is, if so.